public class EagerSingletonFactory {
    private static final EagerSingletonFactory INSTANCE = new EagerSingletonFactory();
    private String myCar;

    private EagerSingletonFactory() {}

    public static EagerSingletonFactory getInstance() {
        return INSTANCE;
    }

    public String showInfo() {
        return Integer.toString(INSTANCE.hashCode());
    }

    public String getMyCar() {
        return myCar;
    }

    public void setMyCar(String myCar) {
        this.myCar = myCar;
    }
}
